package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WeatherMapper;
import com.ruoyi.system.domain.Weather;
import com.ruoyi.system.service.IWeatherService;

@Service
public class WeatherServiceImpl implements IWeatherService 
{
    @Autowired
    private WeatherMapper weatherMapper;

    /**
     * 查询天气
     */
    @Override
    public Weather selectWeatherById(Long id)
    {
        return weatherMapper.selectWeatherById(id);
    }

    /**
     * 查询天气列表
     */
    @Override
    public List<Weather> selectWeatherList(Weather weather)
    {
        return weatherMapper.selectWeatherList(weather);
    }

    /**
     * 新增天气
     */
    @Override
    public int insertWeather(Weather weather)
    {
        return weatherMapper.insertWeather(weather);
    }

    /**
     * 修改天气
     */
    @Override
    public int updateWeather(Weather weather)
    {
        return weatherMapper.updateWeather(weather);
    }

    /**
     * 批量删除天气
     */
    @Override
    public int deleteWeatherByIds(Long[] ids)
    {
        return weatherMapper.deleteWeatherByIds(ids);
    }

    /**
     * 删除天气信息
     */
    @Override
    public int deleteWeatherById(Long id)
    {
        return weatherMapper.deleteWeatherById(id);
    }
}
